<?php

class Controller {

	function __construct() {
	
	}
	
	private function privatefunction() {
	
	}
	
	protected function protectedfunction() {
	
	}

	protected function session()
	{
		if (!isset($_SESSION)) {
			session_start();
		}
		if( isset( $_SESSION['stud_no'] ) ) {
			 $model = new pm();
			 $_SESSION['inboxUnread'] = $model->countUnread( $_SESSION['stud_no'] );
		}
		
	}
}
